<?php


namespace App\Controller\Api;


class thisIs
{
    public $base = "/api_/";

    public function isString(&$id){
        return $id .= "";
    }
    public function isInt(&$id){
        return $id *= 1;
    }
    public function isFloat(&$id){
        return $id *= 1;
    }
    public function isArray(&$id){
        return $id = json_decode($id,true);
    }

    public function isCategory(&$id){
        return $id = $this->base."categories/$id";
    }

    public function isUserAddress(&$id){
        return $id = $this->base."user_addresses/$id";
    }

    public function isUserContact(&$id){
        return $id = $this->base."user_contacts/$id";
    }

    public function isTask(&$id){
        return $id = $this->base."tasks/$id";
    }
}